package com.bdrm.mapper;

import com.bdrm.entity.Flavor;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface FlavorMapper {
    @Insert("insert into flavor(name,value) values(#{name},#{value})")
    void insert(Flavor flavor);

    @Select("select * from flavor")
    List<Flavor> select();


    void update(Flavor flavor);

    @Delete("delete from flavor where id = #{id}")
    void deleteById(Long id);
}
